package scsc.web.xzgl.kgtmng.kgtrpt.data;

import java.io.Serializable;
import scsc.pub.data.KgtYearRpt;


public class KgtRptData extends KgtYearRpt implements Serializable {
	
	public KgtRptData() {
		init();
	}
	String username;

	public KgtRptData(Integer rptId, Integer kgtId, String incomeExpense,
			String equipment, String student, String rptYear, String remark,
			String userId, String latestDate,String userName) {
		this.setEquipment(equipment);
		this.setIncomeExpense(incomeExpense);
		this.setKgtId(kgtId);
		this.setLatestDate(latestDate.substring(0,10));
		this.setRemark(remark);
		this.setRptId(rptId);
		this.setRptYear(rptYear);
		this.setStudent(student);
		this.setUserId(userId);
		this.setUsername(userName);		
	}

	public void reset() {
		init();
	}

	public void init() {
		this.setKgtId(null);
		this.setEquipment(null);
		this.setIncomeExpense(null);
		this.setLatestDate("");
		this.setRemark("");
		this.setRptId(null);
		this.setRptYear("");
		this.setStudent(null);
		this.setUserId("");
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
}
